[INFO] cloning repository https://github.com/daogangtang/learn-libp2p
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/daogangtang/learn-libp2p" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5af80970091694cf447984cdcdcedf270a9d0702
[INFO] checking daogangtang/learn-libp2p against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/daogangtang/learn-libp2p on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/daogangtang/learn-libp2p
[INFO] removed path dependency libp2p from git repo https://github.com/daogangtang/learn-libp2p
[INFO] finished tweaking git repo https://github.com/daogangtang/learn-libp2p
[INFO] tweaked toml for git repo https://github.com/daogangtang/learn-libp2p written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/daogangtang/learn-libp2p already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this
[INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag.
[INFO] the lockfile is outdated, regenerating it
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 63f162d7fb4d276d0ad02d422ea55a8916ff2b38d0bb106ae12ad8c57e7f1cae
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "63f162d7fb4d276d0ad02d422ea55a8916ff2b38d0bb106ae12ad8c57e7f1cae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "63f162d7fb4d276d0ad02d422ea55a8916ff2b38d0bb106ae12ad8c57e7f1cae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "63f162d7fb4d276d0ad02d422ea55a8916ff2b38d0bb106ae12ad8c57e7f1cae", kill_on_drop: false }`
[INFO] [stdout] 63f162d7fb4d276d0ad02d422ea55a8916ff2b38d0bb106ae12ad8c57e7f1cae
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 52d9ddb78b65fba27d6dd75250510f38ca251cf013d3aaa1ff91e5de0f43af17
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "52d9ddb78b65fba27d6dd75250510f38ca251cf013d3aaa1ff91e5de0f43af17", kill_on_drop: false }`
[INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling libc v0.2.77
[INFO] [stderr]    Compiling proc-macro2 v1.0.21
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling typenum v1.12.0
[INFO] [stderr]    Compiling getrandom v0.1.15
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling memchr v2.3.3
[INFO] [stderr]    Compiling pin-project-internal v0.4.23
[INFO] [stderr]     Checking futures-sink v0.3.5
[INFO] [stderr]    Compiling proc-macro-nested v0.1.6
[INFO] [stderr]    Compiling cc v1.0.59
[INFO] [stderr]     Checking slab v0.4.2
[INFO] [stderr]    Compiling remove_dir_all v0.5.3
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]    Compiling proc-macro-hack v0.5.18
[INFO] [stderr]     Checking subtle v2.3.0
[INFO] [stderr]     Checking untrusted v0.7.1
[INFO] [stderr]     Checking opaque-debug v0.3.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.9
[INFO] [stderr]     Checking smallvec v1.4.2
[INFO] [stderr]     Checking cpuid-bool v0.1.2
[INFO] [stderr]     Checking bytes v0.5.6
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking tinyvec v0.3.4
[INFO] [stderr]     Checking subtle v1.0.0
[INFO] [stderr]     Checking constant_time_eq v0.1.5
[INFO] [stderr]     Checking static_assertions v1.1.0
[INFO] [stderr]     Checking data-encoding v2.3.0
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking instant v0.1.6
[INFO] [stderr]     Checking pin-project-lite v0.1.7
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.68
[INFO] [stderr]    Compiling bumpalo v3.4.0
[INFO] [stderr]    Compiling pkg-config v0.3.18
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.68
[INFO] [stderr]     Checking quick-error v1.2.3
[INFO] [stderr]    Compiling httparse v1.3.4
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]     Checking byteorder v0.5.3
[INFO] [stderr]     Checking rustc-hex v2.1.0
[INFO] [stderr]     Checking regex-syntax v0.6.18
[INFO] [stderr]     Checking lru_time_cache v0.10.0
[INFO] [stderr]     Checking base64 v0.11.0
[INFO] [stderr]     Checking termcolor v1.1.0
[INFO] [stderr]     Checking futures-task v0.3.5
[INFO] [stderr]     Checking futures-channel v0.3.5
[INFO] [stderr]     Checking lock_api v0.3.4
[INFO] [stderr]     Checking lock_api v0.4.1
[INFO] [stderr]     Checking thread_local v1.0.1
[INFO] [stderr]     Checking blake2b_simd v0.5.10
[INFO] [stderr]     Checking blake2s_simd v0.5.10
[INFO] [stderr]     Checking quicksink v0.1.2
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling indexmap v1.6.0
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling miniz_oxide v0.4.2
[INFO] [stderr]    Compiling hashbrown v0.8.2
[INFO] [stderr]     Checking unicode-normalization v0.1.13
[INFO] [stderr]     Checking humantime v1.3.0
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]     Checking tokio v0.2.22
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]    Compiling anyhow v1.0.32
[INFO] [stderr]     Checking async-channel v1.4.2
[INFO] [stderr]     Checking crc32fast v1.2.0
[INFO] [stderr]     Checking dns-parser v0.8.0
[INFO] [stderr]     Checking uint v0.8.5
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]     Checking kv-log-macro v1.0.7
[INFO] [stderr]     Checking futures-lite v0.1.11
[INFO] [stderr]     Checking aho-corasick v0.7.13
[INFO] [stderr]    Compiling ring v0.16.15
[INFO] [stderr]    Compiling libz-sys v1.1.2
[INFO] [stderr]    Compiling which v3.1.1
[INFO] [stderr]     Checking idna v0.2.0
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking parking_lot_core v0.7.2
[INFO] [stderr]     Checking parking_lot_core v0.8.0
[INFO] [stderr]     Checking polling v0.1.9
[INFO] [stderr]     Checking socket2 v0.3.15
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking net2 v0.2.35
[INFO] [stderr]     Checking get_if_addrs v0.5.3
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling snow v0.7.1
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]     Checking lru v0.6.0
[INFO] [stderr]     Checking blocking v0.5.2
[INFO] [stderr]    Compiling petgraph v0.5.1
[INFO] [stderr]    Compiling prost-build v0.6.1
[INFO] [stderr]     Checking bytes v0.4.12
[INFO] [stderr]     Checking generic-array v0.12.3
[INFO] [stderr]     Checking parking_lot v0.11.0
[INFO] [stderr]     Checking parking_lot v0.10.2
[INFO] [stderr]     Checking async-io v0.1.11
[INFO] [stderr]    Compiling syn v1.0.40
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]     Checking url v2.1.1
[INFO] [stderr]     Checking flate2 v1.0.17
[INFO] [stderr]     Checking regex v1.3.9
[INFO] [stderr]     Checking digest v0.8.1
[INFO] [stderr]     Checking block-buffer v0.7.3
[INFO] [stderr]     Checking crypto-mac v0.7.0
[INFO] [stderr]     Checking stream-cipher v0.3.2
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking tokio-io v0.1.13
[INFO] [stderr]     Checking salsa20-core v0.2.3
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking universal-hash v0.4.0
[INFO] [stderr]     Checking block-cipher v0.7.1
[INFO] [stderr]     Checking stream-cipher v0.4.1
[INFO] [stderr]     Checking aead v0.3.2
[INFO] [stderr]     Checking crypto-mac v0.8.0
[INFO] [stderr]     Checking hmac v0.7.1
[INFO] [stderr]     Checking sha2 v0.8.2
[INFO] [stderr]     Checking sha3 v0.8.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]     Checking cuckoofilter v0.3.2
[INFO] [stderr]     Checking async-executor v0.1.2
[INFO] [stderr]     Checking salsa20 v0.3.0
[INFO] [stderr]     Checking aes-soft v0.4.0
[INFO] [stderr]     Checking sha2 v0.9.1
[INFO] [stderr]     Checking sha-1 v0.9.1
[INFO] [stderr]     Checking sha3 v0.9.1
[INFO] [stderr]     Checking polyval v0.4.0
[INFO] [stderr]     Checking poly1305 v0.6.0
[INFO] [stderr]     Checking blake2 v0.9.0
[INFO] [stderr]     Checking hmac-drbg v0.2.0
[INFO] [stderr]     Checking async-std v1.6.3
[INFO] [stderr]     Checking tokio-stdin-stdout v0.1.5
[INFO] [stderr]     Checking aes v0.4.0
[INFO] [stderr]     Checking ghash v0.3.0
[INFO] [stderr]     Checking aes-gcm v0.6.0
[INFO] [stderr]     Checking env_logger v0.7.1
[INFO] [stderr]     Checking libsecp256k1 v0.3.5
[INFO] [stderr]     Checking webpki v0.21.3
[INFO] [stderr]     Checking sct v0.6.0
[INFO] [stderr]    Compiling tempfile v3.1.0
[INFO] [stderr]     Checking webpki-roots v0.19.0
[INFO] [stderr]     Checking rustls v0.18.1
[INFO] [stderr]     Checking webpki-roots v0.18.0
[INFO] [stderr]    Compiling synstructure v0.12.4
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.68
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.68
[INFO] [stderr]    Compiling prost-derive v0.6.1
[INFO] [stderr]    Compiling futures-macro v0.3.5
[INFO] [stderr]    Compiling zeroize_derive v1.0.0
[INFO] [stderr]    Compiling asn1_der_derive v0.1.2
[INFO] [stderr]    Compiling thiserror-impl v1.0.20
[INFO] [stderr]    Compiling minicbor-derive v0.4.1
[INFO] [stderr]    Compiling async-trait v0.1.40
[INFO] [stderr]    Compiling libp2p-core-derive v0.20.2
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.68
[INFO] [stderr]     Checking asn1_der v0.6.3
[INFO] [stderr]     Checking zeroize v1.1.0
[INFO] [stderr]     Checking curve25519-dalek v3.0.0
[INFO] [stderr]     Checking chacha20 v0.4.3
[INFO] [stderr]     Checking curve25519-dalek v2.1.0
[INFO] [stderr]     Checking chacha20poly1305 v0.5.1
[INFO] [stderr]     Checking thiserror v1.0.20
[INFO] [stderr]     Checking ed25519-dalek v1.0.0
[INFO] [stderr]     Checking x25519-dalek v0.6.0
[INFO] [stderr]     Checking minicbor v0.5.1
[INFO] [stderr]     Checking pin-project v0.4.23
[INFO] [stderr]     Checking js-sys v0.3.45
[INFO] [stderr]     Checking futures-util v0.3.5
[INFO] [stderr]    Compiling prost v0.6.1
[INFO] [stderr]    Compiling prost-types v0.6.1
[INFO] [stderr]    Compiling libp2p-core v0.22.1
[INFO] [stderr]    Compiling libp2p-noise v0.24.0
[INFO] [stderr]    Compiling libp2p-floodsub v0.22.0
[INFO] [stderr]    Compiling libp2p-plaintext v0.22.0
[INFO] [stderr]    Compiling libp2p-identify v0.22.0
[INFO] [stderr]    Compiling libp2p-kad v0.23.0
[INFO] [stderr]    Compiling libp2p-gossipsub v0.22.0
[INFO] [stderr]     Checking wasm-bindgen-futures v0.4.18
[INFO] [stderr]     Checking futures-executor v0.3.5
[INFO] [stderr]     Checking unsigned-varint v0.5.1
[INFO] [stderr]     Checking futures v0.3.5
[INFO] [stderr]     Checking multihash v0.11.4
[INFO] [stderr]     Checking futures_codec v0.4.1
[INFO] [stderr]     Checking rw-stream-sink v0.2.1
[INFO] [stderr]     Checking wasm-timer v0.2.5
[INFO] [stderr]     Checking soketto v0.4.2
[INFO] [stderr]     Checking yamux v0.8.0
[INFO] [stderr]     Checking async-tls v0.8.0
[INFO] [stderr]     Checking libp2p-pnet v0.19.1
[INFO] [stderr]     Checking unsigned-varint v0.4.0
[INFO] [stderr]     Checking parity-multiaddr v0.9.2
[INFO] [stderr]     Checking multistream-select v0.8.2
[INFO] [stderr]     Checking libp2p-swarm v0.22.0
[INFO] [stderr]     Checking libp2p-yamux v0.25.0
[INFO] [stderr]     Checking libp2p-dns v0.22.0
[INFO] [stderr]     Checking libp2p-mplex v0.22.0
[INFO] [stderr]     Checking libp2p-deflate v0.22.0
[INFO] [stderr]     Checking libp2p-uds v0.22.0
[INFO] [stderr]     Checking libp2p-tcp v0.22.0
[INFO] [stderr]     Checking libp2p-websocket v0.23.0
[INFO] [stderr]     Checking libp2p-wasm-ext v0.22.0
[INFO] [stderr]     Checking libp2p-ping v0.22.0
[INFO] [stderr]     Checking libp2p-request-response v0.3.0
[INFO] [stderr]     Checking libp2p-mdns v0.22.0
[INFO] [stderr]     Checking libp2p v0.28.1
[INFO] [stderr]     Checking learn-libp2p v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stdout]  --> src/ping_listen.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::net::TcpListener;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream`
[INFO] [stdout]  --> src/ping_listen.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tokio::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Future`, `Stream`
[INFO] [stdout]  --> src/ping_listen.rs:7:15
[INFO] [stdout]   |
[INFO] [stdout] 7 | use futures::{Future, Stream};
[INFO] [stdout]   |               ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `OutboundUpgrade`
[INFO] [stdout]  --> src/ping_listen.rs:8:45
[INFO] [stdout]   |
[INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1
[INFO] [stdout]   --> src/ping_listen.rs:22:20
[INFO] [stdout]    |
[INFO] [stdout] 22 |             Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0")
[INFO] [stdout]    |                    ^^ unexpected type argument
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_listen3.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] ...
[INFO] [stdout] 13 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_listen2.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout] 12 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/chat.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] 62 |     mplex,
[INFO] [stdout] 63 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stdout]  --> src/ping_client.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::net::TcpListener;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream`
[INFO] [stdout]  --> src/ping_client.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tokio::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Future`, `Stream`
[INFO] [stdout]  --> src/ping_client.rs:7:15
[INFO] [stdout]   |
[INFO] [stdout] 7 | use futures::{Future, Stream};
[INFO] [stdout]   |               ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_listen3.rs:28:29
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `InboundUpgrade`
[INFO] [stdout]  --> src/ping_client.rs:8:29
[INFO] [stdout]   |
[INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade};
[INFO] [stdout]   |                             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_listen2.rs:24:29
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping`
[INFO] [stdout]   --> src/ping_listen3.rs:41:39
[INFO] [stdout]    |
[INFO] [stdout] 41 |         let behaviour = libp2p::ping::PingListen::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^ could not find `PingListen` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping`
[INFO] [stdout]   --> src/ping_listen2.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let behaviour = libp2p::ping::PingListen::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^ could not find `PingListen` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1
[INFO] [stdout]   --> src/ping_client.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |             Ping::<()>::default().upgrade_outbound(c, b"/ipfs/ping/1.0.0")
[INFO] [stdout]    |                    ^^ unexpected type argument
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_listen3.rs:43:64
[INFO] [stdout]    |
[INFO] [stdout] 43 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_listen2.rs:36:64
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:72:38
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_listen3.rs:65:12
[INFO] [stdout]    |
[INFO] [stdout] 65 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux`
[INFO] [stdout]   --> src/ping_listen3.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout] 8  |     NetworkBehaviour, Transport,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 12 |     yamux,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:65:17
[INFO] [stdout]    |
[INFO] [stdout] 65 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:65:38
[INFO] [stdout]    |
[INFO] [stdout] 65 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 69 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:75:29
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_listen2.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkBehaviour`
[INFO] [stdout]  --> src/ping_listen2.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `TopicBuilder` in `floodsub`
[INFO] [stdout]   --> src/chat.rs:84:44
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let floodsub_topic = libp2p::floodsub::TopicBuilder::new("chat").build();
[INFO] [stdout]    |                                            ^^^^^^^^^^^^ could not find `TopicBuilder` in `floodsub`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:89:44
[INFO] [stdout]    |
[INFO] [stdout] 89 |     struct MyBehaviour<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> {
[INFO] [stdout]    |                                            ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:89:74
[INFO] [stdout]    |
[INFO] [stdout] 89 |     struct MyBehaviour<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> {
[INFO] [stdout]    |                                                                          ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:95:30
[INFO] [stdout]    |
[INFO] [stdout] 95 |     impl<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> MyBehaviour<TSubstream> {
[INFO] [stdout]    |                              ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:95:60
[INFO] [stdout]    |
[INFO] [stdout] 95 |     impl<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> MyBehaviour<TSubstream> {
[INFO] [stdout]    |                                                            ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied
[INFO] [stdout]   --> src/ping_listen3.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ ----------  -------  -- supplied 3 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 4 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:98:35
[INFO] [stdout]    |
[INFO] [stdout] 98 |         where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite
[INFO] [stdout]    |                                   ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:98:65
[INFO] [stdout]    |
[INFO] [stdout] 98 |         where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite
[INFO] [stdout]    |                                                                 ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `swarm` in `core`
[INFO] [stdout]   --> src/chat.rs:97:112
[INFO] [stdout]    |
[INFO] [stdout] 97 | ...floodsub::Floodsub<TSubstream> as libp2p::core::swarm::NetworkBehaviour<TTopology>>::OutEvent)
[INFO] [stdout]    |                                                    ^^^^^ could not find `swarm` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> src/ping_listen2.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ ----------  ------- supplied 2 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]    --> src/chat.rs:112:64
[INFO] [stdout]     |
[INFO] [stdout] 112 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]     |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 |                 Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()),
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:142:17
[INFO] [stdout]     |
[INFO] [stdout] 142 |                 Async::Ready(None) => panic!("Stdin closed"),
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:143:17
[INFO] [stdout]     |
[INFO] [stdout] 143 |                 Async::NotReady => break,
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:149:17
[INFO] [stdout]     |
[INFO] [stdout] 149 |                 Async::Ready(Some(_)) => {
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:152:38
[INFO] [stdout]     |
[INFO] [stdout] 152 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]     |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 156 |         Ok(Async::NotReady)
[INFO] [stdout]     |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]    --> src/chat.rs:138:12
[INFO] [stdout]     |
[INFO] [stdout] 138 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]     |            ^^^ not found in `tokio`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 57  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 19 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_client2.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout] 12 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_client2.rs:24:29
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping`
[INFO] [stdout]   --> src/ping_client2.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let behaviour = libp2p::ping::PeriodicPing::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_client2.rs:36:64
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:64:17
[INFO] [stdout]    |
[INFO] [stdout] 64 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:67:38
[INFO] [stdout]    |
[INFO] [stdout] 67 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 71 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_client2.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 74 |     tokio::run(task);
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkBehaviour`
[INFO] [stdout]  --> src/ping_client2.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stdout]  --> src/ping_listen.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::net::TcpListener;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream`
[INFO] [stdout]  --> src/ping_listen.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tokio::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Future`, `Stream`
[INFO] [stdout]  --> src/ping_listen.rs:7:15
[INFO] [stdout]   |
[INFO] [stdout] 7 | use futures::{Future, Stream};
[INFO] [stdout]   |               ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `OutboundUpgrade`
[INFO] [stdout]  --> src/ping_listen.rs:8:45
[INFO] [stdout]   |
[INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> src/ping_client2.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ ----------  ------- supplied 2 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1
[INFO] [stdout]   --> src/ping_listen.rs:22:20
[INFO] [stdout]    |
[INFO] [stdout] 22 |             Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0")
[INFO] [stdout]    |                    ^^ unexpected type argument
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_client2.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout] 12 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_client3.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] ...
[INFO] [stdout] 13 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_client2.rs:24:29
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping`
[INFO] [stdout]   --> src/ping_client2.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let behaviour = libp2p::ping::PeriodicPing::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_client2.rs:36:64
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:64:17
[INFO] [stdout]    |
[INFO] [stdout] 64 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:67:38
[INFO] [stdout]    |
[INFO] [stdout] 67 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client2.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 71 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_listen3.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] ...
[INFO] [stdout] 13 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_client3.rs:26:29
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_client2.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 74 |     tokio::run(task);
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkBehaviour`
[INFO] [stdout]  --> src/ping_client2.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping`
[INFO] [stdout]   --> src/ping_client3.rs:39:39
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let behaviour = libp2p::ping::PeriodicPing::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_client3.rs:41:64
[INFO] [stdout]    |
[INFO] [stdout] 41 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:72:38
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_client3.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 79 |     tokio::run(task);
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> src/ping_client2.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ ----------  ------- supplied 2 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux`
[INFO] [stdout]   --> src/ping_client3.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout] 8  |     NetworkBehaviour, Transport,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 12 |     yamux,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_client3.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] ...
[INFO] [stdout] 13 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied
[INFO] [stdout]   --> src/ping_client3.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ ----------  -------  -- supplied 3 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 4 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_listen3.rs:28:29
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping`
[INFO] [stdout]   --> src/ping_listen3.rs:41:39
[INFO] [stdout]    |
[INFO] [stdout] 41 |         let behaviour = libp2p::ping::PingListen::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^ could not find `PingListen` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_listen3.rs:43:64
[INFO] [stdout]    |
[INFO] [stdout] 43 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:72:38
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen3.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_listen3.rs:65:12
[INFO] [stdout]    |
[INFO] [stdout] 65 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux`
[INFO] [stdout]   --> src/ping_listen3.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout] 8  |     NetworkBehaviour, Transport,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 12 |     yamux,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied
[INFO] [stdout]   --> src/ping_listen3.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ ----------  -------  -- supplied 3 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 4 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/chat.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] 62 |     mplex,
[INFO] [stdout] 63 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stdout]  --> src/ping_client.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::net::TcpListener;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream`
[INFO] [stdout]  --> src/ping_client.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tokio::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Future`, `Stream`
[INFO] [stdout]  --> src/ping_client.rs:7:15
[INFO] [stdout]   |
[INFO] [stdout] 7 | use futures::{Future, Stream};
[INFO] [stdout]   |               ^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `InboundUpgrade`
[INFO] [stdout]  --> src/ping_client.rs:8:29
[INFO] [stdout]   |
[INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade};
[INFO] [stdout]   |                             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1
[INFO] [stdout]   --> src/ping_client.rs:15:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |             Ping::<()>::default().upgrade_outbound(c, b"/ipfs/ping/1.0.0")
[INFO] [stdout]    |                    ^^ unexpected type argument
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_client3.rs:26:29
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping`
[INFO] [stdout]   --> src/ping_client3.rs:39:39
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let behaviour = libp2p::ping::PeriodicPing::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_client2.rs:29:72
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                        ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_client3.rs:41:64
[INFO] [stdout]    |
[INFO] [stdout] 41 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:72:38
[INFO] [stdout]    |
[INFO] [stdout] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_client3.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_client3.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 79 |     tokio::run(task);
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux`
[INFO] [stdout]   --> src/ping_client3.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout] 8  |     NetworkBehaviour, Transport,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 12 |     yamux,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied
[INFO] [stdout]   --> src/ping_client3.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ ----------  -------  -- supplied 3 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 4 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_client2.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_listen2.rs:29:72
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                        ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_listen2.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_listen3.rs:36:67
[INFO] [stdout]    |
[INFO] [stdout] 36 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_listen3.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:75:29
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_client2.rs:61:16
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let task = futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let task = futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_listen2.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 58 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_listen2.rs:61:25
[INFO] [stdout]    |
[INFO] [stdout] 61 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `TopicBuilder` in `floodsub`
[INFO] [stdout]   --> src/chat.rs:84:44
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let floodsub_topic = libp2p::floodsub::TopicBuilder::new("chat").build();
[INFO] [stdout]    |                                            ^^^^^^^^^^^^ could not find `TopicBuilder` in `floodsub`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:89:44
[INFO] [stdout]    |
[INFO] [stdout] 89 |     struct MyBehaviour<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> {
[INFO] [stdout]    |                                            ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:89:74
[INFO] [stdout]    |
[INFO] [stdout] 89 |     struct MyBehaviour<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> {
[INFO] [stdout]    |                                                                          ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:95:30
[INFO] [stdout]    |
[INFO] [stdout] 95 |     impl<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> MyBehaviour<TSubstream> {
[INFO] [stdout]    |                              ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_client2.rs:63:25
[INFO] [stdout]    |
[INFO] [stdout] 63 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:95:60
[INFO] [stdout]    |
[INFO] [stdout] 95 |     impl<TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite> MyBehaviour<TSubstream> {
[INFO] [stdout]    |                                                            ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:98:35
[INFO] [stdout]    |
[INFO] [stdout] 98 |         where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite
[INFO] [stdout]    |                                   ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p`
[INFO] [stdout]   --> src/chat.rs:98:65
[INFO] [stdout]    |
[INFO] [stdout] 98 |         where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite
[INFO] [stdout]    |                                                                 ^^^^^^^^ could not find `tokio_io` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `swarm` in `core`
[INFO] [stdout]   --> src/chat.rs:97:112
[INFO] [stdout]    |
[INFO] [stdout] 97 | ...floodsub::Floodsub<TSubstream> as libp2p::core::swarm::NetworkBehaviour<TTopology>>::OutEvent)
[INFO] [stdout]    |                                                    ^^^^^ could not find `swarm` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_listen2.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]    --> src/chat.rs:112:64
[INFO] [stdout]     |
[INFO] [stdout] 112 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]     |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_client2.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 |                 Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()),
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:142:17
[INFO] [stdout]     |
[INFO] [stdout] 142 |                 Async::Ready(None) => panic!("Stdin closed"),
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:143:17
[INFO] [stdout]     |
[INFO] [stdout] 143 |                 Async::NotReady => break,
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:149:17
[INFO] [stdout]     |
[INFO] [stdout] 149 |                 Async::Ready(Some(_)) => {
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_listen3.rs:65:16
[INFO] [stdout]    |
[INFO] [stdout] 65 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 65 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:152:38
[INFO] [stdout]     |
[INFO] [stdout] 152 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]     |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]    --> src/chat.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 156 |         Ok(Async::NotReady)
[INFO] [stdout]     |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]    --> src/chat.rs:138:12
[INFO] [stdout]     |
[INFO] [stdout] 138 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]     |            ^^^ not found in `tokio`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 57  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_listen3.rs:68:25
[INFO] [stdout]    |
[INFO] [stdout] 68 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 19 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_listen3.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_client3.rs:34:67
[INFO] [stdout]    |
[INFO] [stdout] 34 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_client3.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_client3.rs:66:16
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let task = futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let task = futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_client3.rs:68:25
[INFO] [stdout]    |
[INFO] [stdout] 68 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_client3.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec`
[INFO] [stdout]   --> src/ping_listen2.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     secio,
[INFO] [stdout]    |     ^^^^^ no `secio` in the root
[INFO] [stdout] 11 |     mplex,
[INFO] [stdout] 12 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stdout]    |     ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_listen3.rs:36:67
[INFO] [stdout]    |
[INFO] [stdout] 36 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_listen3.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_listen3.rs:65:16
[INFO] [stdout]    |
[INFO] [stdout] 65 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 65 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_listen3.rs:68:25
[INFO] [stdout]    |
[INFO] [stdout] 68 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_listen3.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p`
[INFO] [stdout]   --> src/ping_listen2.rs:24:29
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let transport = libp2p::CommonTransport::new()
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_client2.rs:29:72
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                        ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_client2.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping`
[INFO] [stdout]   --> src/ping_listen2.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let behaviour = libp2p::ping::PingListen::new();
[INFO] [stdout]    |                                       ^^^^^^^^^^ could not find `PingListen` in `ping`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stdout]   --> src/ping_listen2.rs:36:64
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 Async::Ready(Some(x)) => {
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:65:17
[INFO] [stdout]    |
[INFO] [stdout] 65 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:65:38
[INFO] [stdout]    |
[INFO] [stdout] 65 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stdout]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stdout]   --> src/ping_listen2.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 69 |         Ok(Async::NotReady)
[INFO] [stdout]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stdout]   --> src/ping_listen2.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |            ^^^ not found in `tokio`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 6  | use crate::stream::futures_unordered::fmt::run;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkBehaviour`
[INFO] [stdout]  --> src/ping_listen2.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_client2.rs:61:16
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let task = futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let task = futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_client2.rs:63:25
[INFO] [stdout]    |
[INFO] [stdout] 63 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> src/ping_listen2.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ ----------  ------- supplied 2 arguments
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_client2.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_client3.rs:34:67
[INFO] [stdout]    |
[INFO] [stdout] 34 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                   ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_client3.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_client3.rs:66:16
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let task = futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let task = futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_client3.rs:68:25
[INFO] [stdout]    |
[INFO] [stdout] 68 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_client3.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope
[INFO] [stdout]   --> src/ping_listen2.rs:29:72
[INFO] [stdout]    |
[INFO] [stdout] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stdout]    |                                                                        ^^^^^^^^^^^^^ method not found in `UpgradeError<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied
[INFO] [stdout]   --> src/ping_listen2.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ ---------  ---------  -----------------------------------------------  ------------- supplied 4 arguments
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stdout]   --> src/ping_listen2.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected closure that takes 1 argument
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the closure to take and ignore the expected argument
[INFO] [stdout]    |
[INFO] [stdout] 58 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stdout]    |                                              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _, _>` in the current scope
[INFO] [stdout]   --> src/ping_listen2.rs:61:25
[INFO] [stdout]    |
[INFO] [stdout] 61 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stdout]    |                         ^^^^ method not found in `ExpandedSwarm<_, _, _, _, _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `swarm` is a function, perhaps you wish to call it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Transport`
[INFO] [stdout]  --> src/ping_listen2.rs:8:23
[INFO] [stdout]   |
[INFO] [stdout] 8 |     NetworkBehaviour, Transport,
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "52d9ddb78b65fba27d6dd75250510f38ca251cf013d3aaa1ff91e5de0f43af17", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "52d9ddb78b65fba27d6dd75250510f38ca251cf013d3aaa1ff91e5de0f43af17", kill_on_drop: false }`
[INFO] [stdout] 52d9ddb78b65fba27d6dd75250510f38ca251cf013d3aaa1ff91e5de0f43af17
